<?php /* Smarty version 2.6.26, created on 2013-12-24 11:17:42
         compiled from admin/users.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'geturl', 'admin/users.html', 16, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin/header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table>
    <tr>
        <th>Логин</th>
        <th>Предприятие</th>
        <th>Контактное лицо</th>
        <th>Действия</th>
    </tr>
    <?php $_from = $this->_tpl_vars['users']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['user']):
?>
   <?php if ($this->_tpl_vars['user']->getId() != 1): ?> <tr id="tr_<?php echo $this->_tpl_vars['user']->getId(); ?>
">
        <td id="name_<?php echo $this->_tpl_vars['user']->getId(); ?>
" id="name_<?php echo $this->_tpl_vars['user']->getId(); ?>
"><?php echo $this->_tpl_vars['user']->login; ?>
</td>
        <td><?php echo $this->_tpl_vars['user']->company; ?>
</td>
        <td><?php echo $this->_tpl_vars['user']->manager; ?>
</td>
        <td>
            
            <a href="<?php echo smarty_function_geturl(array('route' => 'edituser','id' => $this->_tpl_vars['user']->getId()), $this);?>
">Редактировать</a>
            | 
            <a onclick="deleteuser(<?php echo $this->_tpl_vars['user']->getId(); ?>
);" style="cursor: pointer">Удалить</a> |
            <a  id="app_<?php echo $this->_tpl_vars['user']->getId(); ?>
" onclick="approveuser(<?php echo $this->_tpl_vars['user']->getId(); ?>
,<?php echo $this->_tpl_vars['user']->isApproved; ?>
)"><?php if (! $this->_tpl_vars['user']->isApproved): ?> Одобрить<?php else: ?> Заблокировать<?php endif; ?></a>
        </td>

  
          
    </tr>  <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'admin/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>